#ifndef GAME_OVER_VIEW_H
#define GAME_OVER_VIEW_H

#include "GameOverModel.h"
#include "View.h"
#include "Screen.h"
#include "d3dx9.h"
#include "d3d9.h"
#include <string>

const int GameOverChoicesCount = 1;

const LPCSTR _gameOverLabelText1 = "YOU WIN!";
const int _gameOverLabelTextLen1 = strlen(_gameOverLabelText1);

const LPCSTR _gameOverLabelText2 = "YOU LOSE!";
const int _gameOverLabelTextLen2 = strlen(_gameOverLabelText2);

const LPCSTR _menuReturnOption = "Press Enter";
const int _menuReturnLen = strlen(_menuReturnOption);

const D3DCOLOR _gameOverTextColor = D3DCOLOR_ARGB(255,255,255,255);;

class GameOverView: public View
{
  public:
    GameOverView(Screen* screen, Model* m, LPDIRECT3DDEVICE9 dd3d);
    ~GameOverView(void);
    void InitRects();
  protected:
    void PreRender();
    void PostRender();
    void Draw();
    void HandleMessage(Message* msg);
  private:
    LPD3DXFONT _mainMenuFont;
    LPD3DXFONT _subMenuFont;
    GameOverModel* _model;
    RECT _titleRect;
    RECT _returnRect;
};

#endif
